package com.friends.digitpic.service.service.impl;

import javax.annotation.Resource;

import org.jeecgframework.minidao.pojo.MiniDaoPage;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Component;
import com.friends.digitpic.service.dao.UsertranspicgroupDao;
import com.friends.digitpic.service.entity.UsertranspicgroupEntity;
import com.friends.digitpic.service.service.UsertranspicgroupService;

/**
 * 描述：交易记录
 * @author: jiangge xia
 * @since：2018年09月15日 22时44分22秒 星期六 
 * @version:1.0
 */

@Transactional
@Component
public class UsertranspicgroupServiceImpl implements UsertranspicgroupService {

	@Resource(name = "usertranspicgroupDao")
	private UsertranspicgroupDao usertranspicgroupDao;


	public UsertranspicgroupEntity getUsertranspicgroup(String usertranspicgroupid) {
		return usertranspicgroupDao.get(usertranspicgroupid);
	}

	public int updateUsertranspicgroup(UsertranspicgroupEntity usertranspicgroup) {
		return usertranspicgroupDao.update(usertranspicgroup);
	}

	public void insertUsertranspicgroup(UsertranspicgroupEntity usertranspicgroup) {
		usertranspicgroupDao.insert(usertranspicgroup);
		
	}

	public MiniDaoPage<UsertranspicgroupEntity> getUsertranspicgroupAll(UsertranspicgroupEntity usertranspicgroup, int page, int rows) {
		return usertranspicgroupDao.getAll(usertranspicgroup, page, rows);
	}

	public void deleteUsertranspicgroup(UsertranspicgroupEntity usertranspicgroup) {
		usertranspicgroupDao.delete(usertranspicgroup);
		
	}
}
